cmake_minimum_required(VERSION 3.5.0)
project(LoadShared)

set(CMAKE_CXX_STANDARD 17)


file(GLOB LoadShared_srcs *.cpp)
add_library(LoadShared STATIC ${LoadShared_srcs})

if(UNIX)
target_link_libraries(LoadShared dl)
endif()

# add_executable(main main.cpp )
# target_link_libraries(main LoadShared)